package com.mindcraft.chat.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Transient;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 好友
 * </p>
 *
 * @author sara
 * @since 2021-12-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("im_chat_user_friend")
public class ImChatUserFriend implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;

    /**
     * 好友ID
     */
    @TableField("friend_id")
    private String friendId;

    /**
     * 朋友状态[0:未审核，1:审核通过]
     */
    @TableField("friend_status")
    private Integer friendStatus;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    @Transient
    @TableField(exist = false)
    private Integer skuId;

    @Transient
    @TableField(exist = false)
    private String userPic;
    @Transient
    @TableField(exist = false)
    private String nickName;
    @Transient
    @TableField(exist = false)
    private String content;

    @Transient
    @TableField(exist = false)
    private String imgUrl;

    @Transient
    @TableField(exist = false)
    private Integer newsCount;


    @Transient
    @TableField(exist = false)
    private BigDecimal price;

    @Transient
    @TableField(exist = false)
    private String postAddress;

}
